#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main()
{
	int x = 0;
	int y = 0;
	int z = 0;
	while (y<8)
	{
		z = 8 - x - y;
		if (56 == 4 * x + 7 * y + z * 11 && z>0)
		{
			break;
		}
		else
		{
			x++;
			y++;
		}
	}
	printf("%d %d %d", x, y, z);
	return 0;
}